package com.centronix.manager.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.centronix.dao.StockDAO;
import com.centronix.domain.Stock;
import com.centronix.manager.StockManager;
@Service(value="stockManager")
@Transactional
public class StockManagerImpl implements StockManager{
	
	private static final long serialVersionUID = 1L;
	
	@Autowired
	private StockDAO stockDAO;
	
	public List<Stock> findAllStock(){
		return this.stockDAO.findAll();
	}

	public StockDAO getStockDAO() {
		return stockDAO;
	}

	public void setStockDAO(StockDAO stockDAO) {
		this.stockDAO = stockDAO;
	}
	
	
}
